import useUserStore from '@/store/modules/user';

const userStore = useUserStore();
const token = userStore.token;

// websocket
const NODE_ENV = import.meta.env.MODE;
const locationName = NODE_ENV === 'development' ? '129.211.213.88' : location.host;
const webscoketUrl = `ws://${locationName}`;

export const webscoketUploadFileUrl = `${webscoketUrl}/tele/websocket?token=${token}`;
